Draft
Conversation
…TPicker 核心变更: - 新增 TPickerOption(label, value, disabled) 数据类,label/value 分离 - 新增 TPickerValue + TPickerLoadEvent 回调类型 - 重写 TPicker: 支持 List<List<TPickerOption>> 多列独立 + Map 联动模式 - 删除 t_date_picker.dart / t_multi_picker.dart (合并入 t_picker.dart) - 删除 t_date_picker_page.dart (由 TPickerPage 替代) - onChange 命名统一 (原 onChanged) - 移除 onSelectedItemChanged 回调 - 移除 Header/弹窗逻辑 (解耦展示层) - 保留 TItemWidget / no_wave_behavior 内部组件 API 设计: - items: 数据源 (List 或 Map) - initialValue: 初始选中值 - onChange: 选中回调 (TPickerValue) - onLoad: 按需加载回调 (TPickerLoadEvent) - height/itemCount/preloadThreshold: 尺寸与加载控制 文件结构: picker/ t_picker.dart # 主组件 (307行) t_picker_option.dart # 选项数据类 t_picker_value.dart # 回调类型 t_item_widget.dart # 项渲染组件 (复用) API_REFERENCE.md # API 文档
Contributor
📱 APK 下载 |
Member
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

API 设计:
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
refactor(picker): 将 picker 组件只保留选择功能
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
组件类名: 修改描述(示例:TBottomTabBar: 修复iconText模式,底部溢出2.5像素)